Skip to content

Fixes for DNS, TCP, ICMP#76

Merged
philljj merged 6 commits intowolfSSL:masterfrom
danielinux:fixes-20260310
Mar 10, 2026
Merged

Fixes for DNS, TCP, ICMP#76
philljj merged 6 commits intowolfSSL:masterfrom
danielinux:fixes-20260310

Conversation

@danielinux
Copy link
Member

F/477: fix byteorder in DNS returned IP address
F/478: Bind ICMP sockets to an IP address / interface
F/479: Fix ACK processing in CLOSE_WAIT state
F/480: DNS client: properly validate XID before accepting record
F/481: Add comment to clarify RTT wrapping logic.

Copilot AI review requested due to automatic review settings March 10, 2026 15:23
@danielinux danielinux requested a review from philljj March 10, 2026 15:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses several protocol-level correctness issues in the wolfIP stack, spanning DNS response handling, TCP ACK processing, and ICMP socket binding behavior.

Changes:

  • DNS client: validate response XID before parsing, and fix returned A-record IP byte order.
  • TCP: process ACKs while in TCP_CLOSE_WAIT.
  • ICMP: persist bound_local_ip on bind; add clarification comment on RTT tick wrap behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/wolfip.c Implements DNS XID validation + A-record IP byte order fix; processes TCP ACK in CLOSE_WAIT; stores bound_local_ip for ICMP binds; adds RTT wrap clarification comment.
src/test/unit/unit.c Updates/extends unit tests for DNS byte order + wrong-XID ignore behavior, ICMP bind behavior, and TCP CLOSE_WAIT ACK processing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@philljj philljj merged commit 60444d8 into wolfSSL:master Mar 10, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants